package br.com.globalcode.clinicafacil.config;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class ConfigWriter {


	public void write (String content) {
		
		try ( OutputStream 
			out = new FileOutputStream("clinicafacil.properties")) {
				
			out.write(content.getBytes());
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
//		} finally {
//			
//			if (out != null) {
//				
//				try {
//					out.close();
//				} catch (IOException e) {
//					// TODO Auto-generated catch block
//					e.printStackTrace();
//				}
//			}
//			
//		}
		
		
		
		
		
		
	}


}
